#!/usr/bin/env node
const Radio = require('./06-radio');
const log = console.log;
const station = {
  freq:'106.7',
  name:'music radio'
};
let radio = new Radio(station);
radio.on('open',(station)=>{
  log('"%s"FM %s opened',station.name,station.freq);
  log('lala...');
});
radio.on('stop',(station)=>{
  log('"%s" FM %s closed',station.name,station.freq);
});
